import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ReactiveFormsModule, FormsModule} from '@angular/forms';
import {RouterModule} from '@angular/router';
// delon
import {NgZorroAntdExtraModule} from 'ng-zorro-antd-extra';
import {AlainThemeModule} from '@delon/theme';
import {AlainACLModule} from '@delon/acl';
import {ZORROMODULES, ABCMODULES} from '../delon.module';

// region: third libs
import {CountdownModule} from 'ngx-countdown';
import {NzSchemaFormModule} from 'nz-schema-form';
import {UEditorModule} from 'ngx-ueditor';
import { FroalaComponent } from './froala/froala.component';
import {FroalaEditorModule, FroalaViewModule} from 'angular-froala-wysiwyg';
import { MyimguploadComponent } from './myimgupload/myimgupload.component';
import { MyimgloadComponent } from './myimgload/myimgload.component';

const THIRDMODULES = [
    CountdownModule,
    NzSchemaFormModule,
    // thirds

];
// endregion

// region: your componets & directives
const COMPONENTS = [];
const DIRECTIVES = [];

// endregion

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        RouterModule,
        ReactiveFormsModule,
        ...ZORROMODULES,
        NgZorroAntdExtraModule,
        AlainThemeModule.forChild(),
        ...ABCMODULES,
        AlainACLModule,
        // third libs
        ...THIRDMODULES,
        UEditorModule.forRoot(
            {
                path: '../../assets/ueditor/',
            }
        ),
        FroalaEditorModule.forRoot(),
        FroalaViewModule.forRoot(),


    ],
    declarations: [
        // your components
        ...COMPONENTS,
        ...DIRECTIVES,
        FroalaComponent,
        MyimguploadComponent,
        MyimgloadComponent
    ],
    exports: [
        CommonModule,
        FormsModule,
        ReactiveFormsModule,
        RouterModule,
        ...ZORROMODULES,
        NgZorroAntdExtraModule,
        AlainThemeModule,
        ...ABCMODULES,
        // third libs
        ...THIRDMODULES,
        // your components
        ...COMPONENTS,
        ...DIRECTIVES,

        UEditorModule,
        FroalaComponent,
        MyimguploadComponent,
        MyimgloadComponent,
    ]
})
export class SharedModule {
}
